package com.github.dice.service;

import com.github.dice.dto.RollDiceDTO;
import com.github.dice.entity.Player;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.annotation.Nonnull;

public interface IPlayerService extends IService<Player> {
    Player getPlayByNameAndPwd(@Nonnull String playerName, @Nonnull String playerPwd);

    Player getPlayerByName(@Nonnull String playerName);

    Player addPlayer(Player player);

    void rollDice(RollDiceDTO rollDiceDTO);
}
